package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * 
* @ClassName: moments 
* @Description: 朋友圈定义表
* @author eason
* @date 2016-11-10 14:29:16
*
 */
@Entity
@Table(name = "tb_xa_moments")
@ApiModel(value="朋友圈定义表")
public class Moments extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="用户Id,用户Id")
	private Long userId;
	@ApiModelProperty(value="朋友圈内容,内容")
	private String content;
	@ApiModelProperty(value="朋友圈图片,朋友圈图片，多张用逗号分割")
	private String photos;
	//新增
	@ApiModelProperty(value="用户名:发朋友圈的人")
	private String userName;
	@ApiModelProperty(value="类型:1：点赞、2：评论")
	private Integer type;
	@ApiModelProperty(value="用户名,点赞或评论人名")
	private String mUserName;
	@ApiModelProperty(value="回复人,回复评论人")
	private String replyToUserName;
	@ApiModelProperty(value="回复内容,回复内容，点赞时为空")
	private String replyContent;
	
	
	public void setUserId(Long userId){
		this.userId=userId;
	}
	
	@Column(nullable=true,length=50)
	public Long getUserId(){
		return userId;
	}
	public void setContent(String content){
		this.content=content;
	}
	
	@Column(nullable=true,length=2000,columnDefinition="MEDIUMTEXT")
	public String getContent(){
		return content;
	}
	public void setPhotos(String photos){
		this.photos=photos;
	}
	
	@Column(nullable=true,length=2550)
	public String getPhotos(){
		return photos;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getmUserName() {
		return mUserName;
	}

	public void setmUserName(String mUserName) {
		this.mUserName = mUserName;
	}

	public String getReplyToUserName() {
		return replyToUserName;
	}

	public void setReplyToUserName(String replyToUserName) {
		this.replyToUserName = replyToUserName;
	}

	public String getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

}
